import Vue from 'vue'
import './plugins/axios'

import App from './App.vue'
import router from './router'
import store from './store'

import Cookies from 'js-cookie'
import 'amfe-flexible'
import  fontObj  from "./utils/rem.js"
import Vant from 'vant';
import 'vant/lib/index.css';
import  '@/assets/css/common.scss'
import "@/assets/animate/animate.min.css"
import toast from "./components/toast/toast.js"
import LoadToast from "./components/loadtoast/loadtoast.js"
import PayToast from "./components/paytoast/paytoast.js"
import MyRecommend from "@/components/recommend/Recommend.vue";
import VueWechatTitle from "vue-wechat-title";
import { Toast } from 'vant'
import { Lazyload } from 'vant';

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
  loading:require('@/assets/icon/common/loadimg.png'),
  error:require('@/assets/icon/common/errimg.png')
});
Vue.use(toast)
Vue.use(Vant);
Vue.use(LoadToast);
Vue.use(PayToast);
Vue.use(MyRecommend);
Vue.use(VueWechatTitle);
Toast.setDefaultOptions({ duration: 500 })
// fontObj.initRootEvent()
import AsideNav from "@/components/asidenav/AsideNav.vue"
Vue.component('AsideNav',AsideNav)
Vue.component('my-recommend',MyRecommend)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


